package com.ruoyi.school.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.school.domain.Student;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 审批记录
 * @TableName pac_audit_records
 */
@Data
public class PacAuditRecordsVo extends Student implements Serializable {
    /**
     * 审批id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 审批编号
     */
    @Excel(name = "审批编号")
    private String auditCode;

    /**
     * 审批类别(1:学术成果 2:实战成果 3:入党)
     */
    @Excel(name = "审批类别", readConverterExp = "1=学术成果,2=实战成果,3=入党申请,4=技能证书")
    private Integer auditType;

    /**
     * 审核人
     */
    @Excel(name = "审核人")
    private String auditUser;

    /**
     * 证明材料
     */
    @Excel(name = "证明材料")
    private String auditFile;

    /**
     * 申请标题
     */
    @Excel(name = "申请标题")
    private String auditTitle;

    /**
     * 申请内容
     */
    @Excel(name = "申请内容")
    private String auditCont;

    /**
     * 申请人
     */
    @Excel(name = "申请人")
    private String auditStu;

    /**
     * 申请学生id
     */
    @Excel(name = "申请人")
    private Long auditStuId;

    /**
     * 申请人班级
     */
    @Excel(name = "申请人班级")
    private String auditStuClass;

    /**
     * 审核状态(1:审核中，2:审核通过，3:审核驳回)
     */
    @Excel(name = "审核状态", readConverterExp = "1=待审核,2=审核通过,3=审核驳回")
    private Integer auditStatus;

    /**
     * 审核备注
     */
    private String auditRemarks;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    @Excel(name = "申请时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 更新时间
     */
    @Excel(name = "审核时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PacAuditRecordsVo other = (PacAuditRecordsVo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAuditType() == null ? other.getAuditType() == null : this.getAuditType().equals(other.getAuditType()))
            && (this.getAuditUser() == null ? other.getAuditUser() == null : this.getAuditUser().equals(other.getAuditUser()))
            && (this.getAuditFile() == null ? other.getAuditFile() == null : this.getAuditFile().equals(other.getAuditFile()))
            && (this.getAuditTitle() == null ? other.getAuditTitle() == null : this.getAuditTitle().equals(other.getAuditTitle()))
            && (this.getAuditCont() == null ? other.getAuditCont() == null : this.getAuditCont().equals(other.getAuditCont()))
            && (this.getAuditStu() == null ? other.getAuditStu() == null : this.getAuditStu().equals(other.getAuditStu()))
            && (this.getAuditStuId() == null ? other.getAuditStuId() == null : this.getAuditStuId().equals(other.getAuditStuId()))
            && (this.getAuditStuClass() == null ? other.getAuditStuClass() == null : this.getAuditStuClass().equals(other.getAuditStuClass()))
            && (this.getAuditStatus() == null ? other.getAuditStatus() == null : this.getAuditStatus().equals(other.getAuditStatus()))
            && (this.getAuditRemarks() == null ? other.getAuditRemarks() == null : this.getAuditRemarks().equals(other.getAuditRemarks()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAuditType() == null) ? 0 : getAuditType().hashCode());
        result = prime * result + ((getAuditUser() == null) ? 0 : getAuditUser().hashCode());
        result = prime * result + ((getAuditFile() == null) ? 0 : getAuditFile().hashCode());
        result = prime * result + ((getAuditTitle() == null) ? 0 : getAuditTitle().hashCode());
        result = prime * result + ((getAuditCont() == null) ? 0 : getAuditCont().hashCode());
        result = prime * result + ((getAuditStu() == null) ? 0 : getAuditStu().hashCode());
        result = prime * result + ((getAuditStuId() == null) ? 0 : getAuditStuId().hashCode());
        result = prime * result + ((getAuditStuClass() == null) ? 0 : getAuditStuClass().hashCode());
        result = prime * result + ((getAuditStatus() == null) ? 0 : getAuditStatus().hashCode());
        result = prime * result + ((getAuditRemarks() == null) ? 0 : getAuditRemarks().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", auditType=").append(auditType);
        sb.append(", auditUser=").append(auditUser);
        sb.append(", auditFile=").append(auditFile);
        sb.append(", auditTitle=").append(auditTitle);
        sb.append(", auditCont=").append(auditCont);
        sb.append(", auditStu=").append(auditStu);
        sb.append(", auditStuId=").append(auditStuId);
        sb.append(", auditStuClass=").append(auditStuClass);
        sb.append(", auditStatus=").append(auditStatus);
        sb.append(", auditRemarks=").append(auditRemarks);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}